using System;

namespace UserManagementService.Exceptions;

/// <summary>
/// 用户不存在异常
/// </summary>
public class UserNotFoundException : UserManagementException
{
    public Guid UserId { get; }

    public UserNotFoundException()
    {
    }

    public UserNotFoundException(Guid userId)
        : base($"用户ID '{userId}' 不存在")
    {
        UserId = userId;
    }

    public UserNotFoundException(Guid userId, Exception innerException)
        : base($"用户ID '{userId}' 不存在", innerException)
    {
        UserId = userId;
    }
}